package cn.xyz.repository.mongo;

import cn.xyz.mianshi.utils.SKBeanUtils;
import cn.xyz.mianshi.vo.ConsumeRecord;
import cn.xyz.mianshi.vo.DigitalConsumeRecord;
import org.bson.types.ObjectId;
import org.mongodb.morphia.Datastore;
import org.springframework.stereotype.Service;

@Service
public class DigitalConsumeRecordRepositoryImpl extends MongoRepository<DigitalConsumeRecord, ObjectId>{
    @Override
    public Datastore getDatastore() {
        return SKBeanUtils.getDatastore();
    }

    @Override
    public Class<DigitalConsumeRecord> getEntityClass() {
        return DigitalConsumeRecord.class;
    }
}
